<h1><span class="allstores_ico"></span><?= lang('label_menu_link_stores') ?></h1>

<ul class="breadcrumb">
    <li><a href="<?= base_url() ?>"><?= lang('label_home') ?></a></li>
    <li><?= lang('label_menu_link_stores') ?></li>
</ul>


<div class="page">
    <div class="all_stores_banner">
    </div>

    <div class="all_stores"><div>
            <h4>
                <?= lang('label_menu_link_stores') ?>
                
            </h4>
            <div></div>



            <?php if ($stores) { ?>
                <ul>
                    <?php foreach ($stores as $store) {
                        ?>
                        <li>
                            <a href="<?= base_url('store/index/' . $store->id) ?>">
                            <span><img src="<?php
                                foreach ($storedetails[$store->id] as $st)
                                    if ($st->name == 'logo') {
                                        echo base_url(STORE_PATH . $st->value);
                                        continue;
                                    }
                                ?>" alt="" /></span><?php
                                    foreach ($storedetails[$store->id] as $st)
                                        if ($st->name == 'storename') {
                                            echo $st->value;
                                            continue;
                                        }
                                    ?></a>
                        </li>
                    <?php } ?>
                </ul>
            <?php } else { ?>
                <div class="unsaved">
                    <img src="<?php echo str_replace('/index.php', '', $_SERVER['SCRIPT_NAME']) ?>/<?php echo APPPATH ?>views/<?php echo $this->themes->Cms_themes() ?>/images/nostores.png" alt="" />
                    <div style="margin-top: -75px"><?= lang('message_no_stores') ?></div>
                </div>
                <br /><br /><br /><br />
            <?php } ?>
        </div></div>

    <div class="pagination_div">


        <?php if ($createnow) { ?>
            <div class="submit">
                <span><?= lang('label_dont_have_store') ?></span>
                <a href='<?= base_url('store/create/1') ?>' style="margin: auto" name="submit" type="button"  ><?= lang('label_create_now') ?></a>
            </div>
        <?php } ?>
    </div>

</div>
